package admin.code.generator.core.metadata;

/**
 *表列中的元信息
 *@author Jack
 *2016年3月4日下午10:54:23
 */
public class ColumnMetaData {
	private String name; // 列名
	private String type; // 列类型
	private String comment; // 注释
	private int size; //
	private boolean isPrimaryKey;

	public ColumnMetaData(String name, String type, String comment, int size, boolean isPrimaryKey) {
		super();
		this.name = name;
		this.type = type;
		this.comment = comment;
		this.size = size;
		this.isPrimaryKey = isPrimaryKey;
	}

	@Override
	public String toString() {
		return "ColumnMetaData [name=" + name + ", type=" + type + ", comment=" + comment + ", size=" + size + ", isPrimaryKey=" + isPrimaryKey + "]";
	}

	public boolean isPrimaryKey() {
		return isPrimaryKey;
	}

	public void setPrimaryKey(boolean isPrimaryKey) {
		this.isPrimaryKey = isPrimaryKey;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

}
